﻿using NewFormatProject.Infrastructure.Atrributes;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
using NewFormatProject.Infrastructure.Dto.Responses;
using NewFormatProject.Infrastructure.EFCore;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace NewFormatProject.Server.Interfaces
{
    [ProvideClassOrInterface]
    public interface IDepartmentServer
    {
        Task<ResponseApiDto> Tree();
        Task<ResponseApiDto> Add(RequestSysDepartmentsDto department);
        Task<ResponseApiDto> Update(RequestSysDepartmentsDto department);
        Task<ResponseApiDto> Delete(RequestSysDepartmentsDto department);

    }
}
